Am 29.07.23 um 23:16 schrieb Hans Hagen:
On 7/29/2023 10:35 PM, Henning Hraban Ramm wrote:
The setup for MyCode is not applied to \typeMyBuffer, and I don’t know
how it could; something like \typeMyBuffer[MyCode] doesn’t work.
These commands inherit from buffer, so \setupbuffer will work
; then
the \fakewords macro shown (again not executed) as per the default for
typing.
The setup for MyCode is not applied to \typeMyBuffer, and I don’t know
how it could; something like \typeMyBuffer[MyCode] doesn’t work.
These commands inherit from buffer, so \setupbuffer will work. But as I
need
next time.
\starttext
\startbuffer[first]
First paragraph.
\stopbuffer
\startbuffer[second]
Second paragraph.
\stopbuffer
\start
\setupbuffer[before=,after=]
\getbuffer[first]%
\getbuffer[second]
\stop
\blank
\getbuffer[first,second]
\stoptext
Wolfgang
now that I can do something like this:
\startcolumns
\getbuffer[Muenchen]
\stopcolumns
Or do something with \defineparagraph
Is it somehow possible to apply styles to all buffers that gets
included via \getbuffer by defining a special getbuffer-style?
\setupbuffer has before and after keys
Am 17.05.20 um 19:04 schrieb Marco Patzer:
>>
>> Is it somehow possible to apply styles to all buffers that gets
>> included via \getbuffer by defining a special getbuffer-style?
>
> \setupbuffer has before and after keys which can be used. Example:
>
> \setupbuff
that I can do something like this:
>
> \startcolumns
> \getbuffer[Muenchen]
> \stopcolumns
>
> Or do something with \defineparagraph
>
> Is it somehow possible to apply styles to all buffers that gets
> included via \getbuffer by defining a special getbuffer-style?
\setupbuff
s a result the asciimode
command
can't work because the text has already disappeared.
Other characters like $ are less problematic because there are ways to
change
their meaning afterwards (# can be tricky) but not comments because
nothing remains.
\setupbuffer
[before=\blank,
af
odeExampleFramed{\getCodeExample}}}
Oh, I overlooked something:
Can I get pretty printing back, like in \startTEX ... \stopTEX?
I couldn’t find any suitable setup options.
This doesn’t work:
\setupbuffer[CodeExampleB][before={\startTEX},after={\stopTEX}]
Greetlings, Hraban
---
http:/
}
{\defineenumeration[SOLUTION] % display the solutions
[text=\Word{solution},number=no,
after={\vskip1ex}]}
{\definebuffer[SOLUTION] % hide solutions,
\setupbuffer[SOLUTION][local=yes]}
}
\def\startsolution
adapted from Hans's \starthiding (which already exists):
\definebuffer[Hidden]
% uncomment the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\stopHidden
Cheers,
Sietse
, by default, until you get them. The below is
shamelessly adapted from Hans's \starthiding (which already exists):
\definebuffer[Hidden]
% uncomment the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\stopHidden
Cheers
the below to turn this into a non-hiding buffer.
% \setupbuffer[Hidden][after={\getbuffer[Hidden]}]
\startHidden
asdf asdf
\stopHidden
Cheers,
Sietse
--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
Solution
environment or define the environment as
\definebuffer[Solution][local=yes]
\startmode[solutions]
\setupbuffer[Solution][local=no]
\stopmode
\starttext
...
\startSolution
solution
\stopSolution
...
\stoptext
Wolfgang
this?
Use \startmode[...] ... \stopmode in your document without your own
Solution environment or define the environment as
\definebuffer[Solution][local=yes]
\startmode[solutions]
\setupbuffer[Solution][local=no]
\stopmode
\starttext
...
\startSolution
solution
\stopSolution
Am 07.11.2010 um 20:49 schrieb Vedran Miletić:
How would I then do something like this?
\def\startSolution{\startmode[solutions]\startframedtext}
\def\stopSolution{\stopframedtext\stopmode}
\startmode[solution]
\setupbuffer[Solution][local=no,before=\startframedtext,after=\stopframedtext
On Sun, 7 Nov 2010, Wolfgang Schuster wrote:
Am 07.11.2010 um 20:49 schrieb Vedran Miletić:
How would I then do something like this?
\def\startSolution{\startmode[solutions]\startframedtext}
\def\stopSolution{\stopframedtext\stopmode}
\startmode[solution]
\setupbuffer[Solution][local
In the default mode, the solution evironment should gobble its contents.
%D I copy the definition of \tex{starthiding} to {\em hide} the solutions.
\definebuffer [solution]
\setupbuffer [solution] [local=yes]
%D In solution mode, I redefine solution environment as an
%D enumeration without
]
\setupbodyfont[options]
\setupbodyfontenvironment[settings][settings]
\setupbottom[settings][settings]
\setupbottomtexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setupbuffer[name][options]
\setupbuttons[state][settings]
\setupcapitals[title=yes|no][sc
David Arnold wrote:
Then you do:
\getbuffer
will the setup be in a group, and only pertain to the stuff set with
\getbuffer?
No, normally they will live on (buffers often contain definitions).
But you can use
\setupbuffer[before=\begingroup,after=\endgroup]
Cheers, taco
On Tue, 31 May 2005, Hans Hagen wrote:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I did not explain my question well
enough...
I fact, all I need is to know
:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I did not explain my question well
enough...
I fact, all I need is to know, how I could write some verbatim text
in the commands etc. yourself of course.
Greetings, Taco
Peter Münster wrote:
On Tue, 31 May 2005, Hans Hagen wrote:
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here
we end\egroup\blank]
[...]
Hello Hans and Taco,
thank you for your hints, but I think, I
\definebuffer[crap]
\setupbuffer[crap][before=\blank\bgroup here we start,after=and here we
end\egroup\blank]
\starttext
\input tufte
\startcrap
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
oeps oeps oeps oeps oesp
\stopcrap
\input tufte
\getcrap
\input tufte
23 matches
Mail list logo